package com.springboot.tools.filter;

import jakarta.servlet.*;

import java.io.IOException;

public class SecondFilter implements Filter {

	@Override
	public void destroy() {
System.out.println("destroy----SecondFilter");
	}

	@Override
	public void doFilter(ServletRequest request, ServletResponse response,
						 FilterChain chain) throws IOException, ServletException {
		System.out.println("doFilter--start--------SecondFilter");
		chain.doFilter(request, response);
		System.out.println("doFilter--end--------SecondFilter");
	}

	@Override
	public void init(FilterConfig filterConfig) throws ServletException {
		System.out.println("init----------SecondFilter");
	}

}
